# -*- coding:utf-8 -*-
from fastapi import APIRouter, Security
from app.filters import global_filter 
from app.controller import toolController, menuController, postController, deptController, roleController, userController, authController

from app.controller.test import testController

api_router = APIRouter(prefix="/api", dependencies=[Security(global_filter)])

api_router.include_router(toolController,  prefix="/tool",  tags=["辅助工具"])
api_router.include_router(menuController,  prefix="/sys/menu",  tags=["菜单管理"])
api_router.include_router(postController,  prefix="/sys/post",  tags=["岗位管理"])
api_router.include_router(deptController,  prefix="/sys/dept",  tags=["部门管理"])
api_router.include_router(roleController,  prefix="/sys/role",  tags=["角色管理"])
api_router.include_router(userController,  prefix="/sys/user",  tags=["用户管理"])


api_router.include_router(userController,  prefix="/sys/user",  tags=["用户管理"])


api_router.include_router(authController,  prefix="/auth",  tags=["用户认证"])

